import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import '@/api/index';
import './assets/css/base.css';

//<----------------element plus
import ElementPlus from 'element-plus';
import zhCn from 'element-plus/es/locale/lang/zh-cn'; //国际化
// import 'element-plus/theme-chalk/src/index.scss'; //引入elementPlus 所有组件样式
import 'element-plus/theme-chalk/src/message.scss'; //自导导入 mesaagecss失效
//---------------->element plus国际化

import store, { setupStore } from './store';
setupStore();

createApp(App)
  .use(store)
  .use(router)
  .use(ElementPlus, {
    locale: zhCn
  })
  .mount('#app');
